<?php
namespace app\api\validate\company;
use think\Validate;
class Examine extends Validate
{
    protected $rule = [
        'examine_id' => 'require',
        'id' => 'require',
        'progress' => 'require',
        'comment' => 'require',
        'score' => 'require',
        'title'=>'require',
        'type'=>'require',
        'department_id'=>'require',
        'station_id'=>'require',
        'file_id'=>'require'
    ];
    protected $message = [
        'id.require' => '参数错误',
        'examine_id.require' => '参数错误',
        'progress.require' => '请填写进度说明',
        'comment.require' => '请填写评价',
        'score.require' => '请评分',
        'title.require' => '请输入标题',
        'type.require' => '请选择类型',
        'department_id.require' => '请选择部门',
        'station_id.require' => '请选择岗位',
        'file_id.require' => '请上传文件',
    ];
    protected $scene = [
        'addLog' => ['examine_id', 'progress'],
        'saveLog' => ['id', 'comment','score'],
        'logs' => ['examine_id'],
        'addReport' => ['title','type'],
        'editReport' => ['id','title'],
        'addReportTpl' => ['title','department_id','station_id','file_id'],
    ];
}